import { defineStore } from "pinia";
export const useLayoutStore = defineStore("layoutStore", {
    state: () => {
        return {
            menuMode: "vertical", // 布局方式 horizontal vertical
            theme: "dark",
        };
    },
    getters: {},
    actions: {
        setMenuMode(menuMode: string) {
            this.menuMode = menuMode;
        },
        setTheme(theme: string) {
            this.theme = theme;
        },
    },
    persist: true,
});
export default useLayoutStore;
